<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<html>
<head>
<title>Spring - Database Authentication Example</title>

<style>
h2 {
  color:#232323;
  font-style:normal;
  font-weight:300;
  letter-spacing:-1px;
  line-height:1.1em;
  margin:30px 0;
  text-align:center;
  font-size:42px;
}</style>

<style>
table.formtable {
	font-family: verdana, arial, sans-serif;
	font-size: 11px;
	color: #333333;
	border-width: 1px;
	border-color: #999999;
	border-collapse: collapse;
	margin-left:auto; 
    margin-right:auto;
}

table.formtable th {
	background: #E6E6B8;
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #999999;
}

table.formtable td {
	background: #E6E6B8;
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #999999;
}
</style>
</head>
<body>
	<h2 id="banner"><spring:message code="app.header" /></h2>
	<form name="f" action="<c:url value='j_spring_security_check'/>"
		method="POST">
		<table class="formtable">
			<tr>
				<td>Username:</td>
				<td><input type='text' name='j_username' /></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type='password' name='j_password'></td>
			</tr>
			<tr>
				<td colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td colspan='2'><input type="submit"
					value="<spring:message code="button.login"/>" />&nbsp;<input type="reset"
					value="<spring:message code="button.reset"/>" /></td>
			</tr>
		</table>
	</form>
</body>
</html>